package org.vaadin.example.orm.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
//import lombok.Data;

//@Data
@Table("tb_role_acc")
public class AccountRole {
    @Id(keyType = KeyType.Auto)
    private Long id;

    private Long roleId;

    private Long accountId;

    public AccountRole() {
    }

    public AccountRole(Long id, Long roleId, Long accountId) {
        this.id = id;
        this.roleId = roleId;
        this.accountId = accountId;
    }

    @Override
    public String toString() {
        return "AccountRole{" +
                "id=" + id +
                ", roleId=" + roleId +
                ", accountId=" + accountId +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public Long getAccountId() {
        return accountId;
    }

    public void setAccountId(Long accountId) {
        this.accountId = accountId;
    }
}
